#!/usr/bin/python2.7
#conding=utf8
import os
import sys
class Csvfilepaths(object):
    #print(csvparentpath)
    def getcsvfilepaths(self):
        from conf.globalconfiguration import Config
        csvparentpath=Config.CSVFILEPARENTPATH
        if( not os.path.exists(csvparentpath)):
            print("csvparentpath is not exists!")
            sys.exit(1)
        #print(os.listdir(csvparentpath))
        #print("sss")
        files=os.listdir(csvparentpath)
        csvfiles=[]
        for i in files:
            if i.split(".")[1] == "csv":
                csvfiles.append(i)
        return csvfiles
                
        